home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-09-22 | 1.3 KB | 52 lines |
- /*
- * @(#)MouseListener.java 1.7 98/07/01
- *
- * Copyright 1995-1998 by Sun Microsystems, Inc.,
- * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
- * All rights reserved.
- *
- * This software is the confidential and proprietary information
- * of Sun Microsystems, Inc. ("Confidential Information"). You
- * shall not disclose such Confidential Information and shall use
- * it only in accordance with the terms of the license agreement
- * you entered into with Sun.
- */
-
- package java.awt.event;
-
- import java.util.EventListener;
-
- /**
- * The listener interface for receiving mouse events on a component.
- *
- * @version 1.7 07/01/98
- * @author Carl Quinn
- */
- public interface MouseListener extends EventListener {
-
- /**
- * Invoked when the mouse has been clicked on a component.
- */
- public void mouseClicked(MouseEvent e);
-
- /**
- * Invoked when a mouse button has been pressed on a component.
- */
- public void mousePressed(MouseEvent e);
-
- /**
- * Invoked when a mouse button has been released on a component.
- */
- public void mouseReleased(MouseEvent e);
-
- /**
- * Invoked when the mouse enters a component.
- */
- public void mouseEntered(MouseEvent e);
-
- /**
- * Invoked when the mouse exits a component.
- */
- public void mouseExited(MouseEvent e);
- }
-